home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 007 / bytesc88.arc / FEOF.C < prev    next >
Text File  |  1987-10-04  |  384b  |  13 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. #include clib.def
  3. extern int Ustatus[];
  4. /*
  5. ** Test for end-of-file status.
  6. ** Entry: fd = file descriptor
  7. ** Returns non-zero if fd is at eof, else zero.
  8. */
  9. feof(fd) int fd; {
  10.   return (Ustatus[fd] & EOFBIT);
  11.   }
  12.  
  13.